/*
 * CmdWorker.h
 *
 *  Created on: Sep 11, 2011
 *      Author: Gherman Alin
 */

#ifndef COMMANDLINE__CMDWORKER_H_
#define COMMANDLINE__CMDWORKER_H_

#include "../Threads/all.h"
#include "../DataAccess/all.h"
#include <iostream>

namespace CommandLine {

class CmdWorker: public Threads::Thread {
public:
	CmdWorker();
	CmdWorker(std::istream& in, std::ostream& out);
	virtual ~CmdWorker();

	void run();

private:
	DataAccess::SecureFile secureFile;
	std::istream& in;
	std::ostream& out;
};

}

#endif
